package com.sskj.mine.ui.activity;


import android.text.Html;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.sskj.common.base.App;
import com.sskj.lib.RConfig;
import com.sskj.lib.base.BaseActivity;
import com.sskj.mine.R;
import com.sskj.mine.R2;
import com.sskj.mine.bean.UserAgreeMent;
import com.sskj.mine.presenter.WebActivityPresenter;

import butterknife.BindView;

@Route(path = RConfig.MINE_WEB)//协议
public class WebActivity extends BaseActivity<WebActivityPresenter> {

    @BindView(R2.id.tv_content)
    TextView tvContent;

    @Override
    protected int getLayoutResId() {
        return R.layout.mine_activity_web;
    }

    @Override
    public WebActivityPresenter getPresenter() {
        return new WebActivityPresenter();
    }

    @Override
    protected void initView() {
        setTitle(App.INSTANCE.getString(R.string.mine_user_aggreement));
        mPresenter.getXieyi();
    }

    public void updataUI(UserAgreeMent data) {
        tvContent.setText(Html.fromHtml(data.getWebUserAgreement()));

    }
}
